package com.aphrodite.io.sip.header;

/**
 * SipHeaders extends class sip.header.SipHeaders by adding new SIP header
 * names.
 */
public final class SipHeaders extends BaseSipHeaders {

	// ****************************** Extensions
	// *******************************/

	/** String "Allow-Events" */
	public static final String Allow_Events = "Allow-Events";

	/** String "Event" */
	public static final String Event = "Event";

	/** String "o" */
	public static final String Event_short = "o";

	/** String "Refer-To" */
	public static final String Refer_To = "Refer-To";

	/** String "Referred-By" */
	public static final String Referred_By = "Referred-By";
	/** String "Subscription-State" */
	public static final String Subscription_State = "Subscription-State";

	/** Whether <i>str</i> is "Allow-Events" */
	public static boolean isAllowEvents(String str) {
		return same(str, Allow_Events);
	}

	/** Whether <i>str</i> is an Event field */
	public static boolean isEvent(String str) {
		return same(str, Event) || same(str, Event_short);
	}

	/** Whether <i>str</i> is "Referred-By" */
	public static boolean isReferredBy(String str) {
		return same(str, Referred_By);
	}

	/** Whether <i>str</i> is "Refer-To" */
	public static boolean isReferTo(String str) {
		return same(str, Refer_To);
	}

	/** Whether <i>str</i> is an Subscription_State field */
	public static boolean isSubscriptionState(String str) {
		return same(str, Subscription_State);
	}

}
